package com.qidian.mes.wm.service.impl;

import com.qidian.mes.wm.dto.WareAreaSetDTO;
import com.qidian.mes.wm.mapper.WareAreaSetMapper;
import com.qidian.mes.wm.service.WareAreaSetService;
import com.qidian.mes.util.pojo.QdResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: 小可怎么都睡不够
 * @Description:
 * @Time: 2024-04-13 14:25
 **/
@Service
public class WareAreaSetServiceImpl implements WareAreaSetService {
    @Autowired
    WareAreaSetMapper wareAreaSetMapper;


    @Override
    public QdResult deleteAreaSet(WareAreaSetDTO wareAreaSetDTO) {
        wareAreaSetMapper.deleteAreaSet(wareAreaSetDTO);
        return QdResult.success();
    }

    @Override
    public QdResult updateAreaSet(WareAreaSetDTO wareAreaSetDTO) {
        wareAreaSetMapper.updateAreaSet(wareAreaSetDTO);
        return QdResult.success();

    }

    @Override
    public QdResult addAreaSet(WareAreaSetDTO wareAreaSetDTO) {
        wareAreaSetMapper.addAreaSet(wareAreaSetDTO);
        return QdResult.success();

    }

    @Override
    public QdResult getAreaSets(Integer wareAreaId) {
        return QdResult.success(wareAreaSetMapper.queryAreaSet(wareAreaId));

    }
}
